cmake_minimum_required(VERSION 3.5.0)
# 设置一个变量NATIVERENDER_ROOT_PATH，其值为当前CMakeLists.txt所在的目录路径
set(CURRENT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

# 设置源文件
set(MY_NATIVE_SOURCES
    hello.cpp
)

# 添加头文件搜索路径。这里将当前源目录和其下的include目录添加到编译器的头文件搜索路径中
include_directories(${CURRENT_PATH} ${CURRENT_PATH}/include)

# 创建共享库
add_library(hello SHARED ${MY_NATIVE_SOURCES})

# 链接aki_jsbind目标库，aki/src/CMakeLists.txt对应编译的目标库名称、链接日志库（打印日志需要）
target_link_libraries(hello PUBLIC aki_jsbind libhilog_ndk.z.so)